package com.project.ujob.utils;

import com.project.ujob.vo.ResultVO;

public class ResultVOUtil { // 成功返回 携带内容
	public static ResultVO success(Object object) {
		ResultVO resultVO = new ResultVO();
		resultVO.setData(object);
		resultVO.setCode(0);
		resultVO.setMessage("success");
		return resultVO;
	}  

	public static ResultVO success() {
		return success(null);
	}
 
	public static ResultVO error(Integer code, String msg) 
	{ 
		ResultVO resultVO = new ResultVO(); 
	resultVO.setCode(code);
	 resultVO.setMessage(msg); 
	 return resultVO; 
	 } 
}
